# import the webapp module
from google.appengine.ext import webapp
# get registry, we need it to register our filter later .
register = webapp.template.create_template_register() 
from models.Users import *
import os
from decorators import *

path = os.path.join(os.path.dirname(__file__),"../templates/UserInfo.html")

@CheckUserCreated
@register.inclusion_tag(path)
def UserInfo():
    query = D5User.all()
    query.filter("google_user = ",users.get_current_user())
    user = query.get()
    
    return {"user":user}
